package com.dream.service.recommender.api;

import com.dream.common.model.response.BaseResponse;
import com.dream.service.recommender.domain.request.BaseRequest;
import com.dream.service.recommender.domain.request.FrontParam;
import com.dream.service.recommender.domain.request.RegisterService;
import com.dream.service.recommender.domain.response.RecommenderData;

/**
 * Created by zhiji on 2016/3/15.
 * 路由服务, 用于分流以及其他功能
 * 路由可以使用自动嵌入的方式处理
 */
public interface RouteService {

    public void init();

    /**
     * 根据传参获取相应的数据
     * @param request
     * @return
     */
    public BaseResponse<RecommenderData> getRecommender(BaseRequest<FrontParam> request);

    /**
     * 注册实现类
     * @param recommdenderService
     * @return
     */
    public BaseResponse<Boolean> registerService(BaseRequest<RegisterService> recommdenderService);

}
